package com.bjsxt.controller;

import com.bjsxt.service.SearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author coder_z
 * @date 2023/3/19
 **/
@RestController
public class SearchController {
    @Autowired
    private SearchService searchService;
    @RequestMapping("/init")
    public String init(){
        long starttime = System.currentTimeMillis();
        searchService.init();
        long stoptime = System.currentTimeMillis();
        return "耗时"+(stoptime-starttime)/1000+"秒";

    }
}
